<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <{include file="public/head" /}>
    <link rel="stylesheet" href="/static/css/admin_global.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">

    <div class="layui-header header">
        <div class="layui-main">
            <a class="logo" href="/"><img src="/static/image/logo.png"></a>
            <ul class="layui-nav" lay-filter="">
                <li class="layui-nav-item menu layui-this" data-menu="1"><a href="javascript:void(0);">网站内容</a></li>
                <li class="layui-nav-item menu" data-menu="2"><a href="javascript:void(0);">网站设置</a></li>
                <li class="layui-nav-item"><a href="<{:url('login/loginout')}>">注销</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui0side-scroll">
            <!--个人信息-->
            <ul class="layui-nav layui-nav-tree nav1">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="javascript:;" href="javascript:;">资讯<span class="layui-nav-more"></span></a>
                    <dl class="layui-nav-child">
                        <dd class="layui-this"><a target="main" href="<{:url('NewsCate/index')}>">资讯分类</a></dd>
                        <dd><a target="main" href="<{:url('News/index')}>">资讯列表</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="javascript:;" href="javascript:;">管理员<span class="layui-nav-more"></span></a>
                    <dl class="layui-nav-child">
                        <dd><a href="">修改密码</a></dd>
                    </dl>
                </li>
            </ul>
            <!--客户信息-->
            <ul class="layui-nav layui-nav-tree nav2" style="display: none;">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="javascript:;" href="javascript:;">网站配置<span class="layui-nav-more"></span></a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本信息</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe id="iframe" src="" name="main" width="100%" allowtransparency="true" height="100%" frameborder="0" style="overflow: auto;">
        </iframe>
    </div>

</div>

<{include file="public/foot" /}>
<script type="text/javascript">
    layui.use('element', function(){
        var element = layui.element(); //导航的hover效果、二级菜单等功能，需要依赖element模块
        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });

    $(function () {
        $('.menu').click(function () {
            var nav = 'nav' + $(this).attr('data-menu');
            $('.layui-nav-tree').css('display','none');
            $('.' + nav).css('display','block');
        })
    })
</script>
</body>
</html>